Edit Task: SetPossibility ResourceCost
Description
The SetPossibility ResourceCost attribute under EditTask defines the resource cost for a single task possibility.
Parameters
| Parameter | Description |
|---|---|
| PossibilityName | A string of text with a comma delimited list of resources in the possibility. Order is not required and the resource names should not be in quotes. |
| ResourceName | A string of text of the resource that is being defined within the command. |
| Cost | A positive double value representing the cost of the resource. |
| Rate | Options are PerAssignment or PerSecond. |
| SetupApplies | A Boolean value that determines whether cost should apply to setup times. |
| BreakdownApplies | A Boolean value that determines whether cost should apply to breakdown times. |
Examples
Set all cost settings for ResA in the possibility containing ResA and ResB.
PATCH api/task/TaskA
Body:
{
"SetResourceDetails" : {
"PossibilityName" : "ResA,ResB",
"ResourceName" : "ResA",
"ResourceCost" : {
"Cost" : "2",
"Rate" : "PerAssignment",
"SetupApplies" : "True",
"BreakdownApplies" : "False" }
}
}
